<template>
  <div>
    <el-container>
      <el-header>Header</el-header>
      <el-container>
        <el-aside width="220px">
          <div class="菜单">
            <el-row class="tac">
              <el-col >
                <el-menu router
                         default-active="2"
                         class="el-menu-vertical-demo"
                         @open="handleOpen"
                         @close="handleClose">
                  <el-submenu index="1">
                    <template slot="title">
                      <i class="el-icon-location"></i>
                      <span>个人中心</span>
                    </template>
                    <el-menu-item index="/ks">我的信息</el-menu-item>
                    <el-menu-item index="/tz">直播通知</el-menu-item>
                    <el-menu-item index="/gz">我的关注</el-menu-item>
                    <el-menu-item index="/ls">观看历史</el-menu-item>
                  </el-submenu>
                </el-menu>
              </el-col>
            </el-row>
          </div>
          <div class="菜单">
            <el-row class="tac">
              <el-col >
                <el-menu router
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose">
                  <el-submenu index="2">
                    <template slot="title">
                      <i class="el-icon-video-camera-solid"></i>
                      <span>我的直播间</span>
                    </template>
                    <el-menu-item index="/kb">开播设置</el-menu-item>
                    <el-menu-item index="/xx">直播间信息</el-menu-item>
                    <el-menu-item index="/pk">PK设置</el-menu-item>
                  </el-submenu>
                </el-menu>
              </el-col>
            </el-row>
          </div>
          <div class="菜单">
            <el-row class="tac">
              <el-col >
                <el-menu router
                    default-active="2"
                    class="el-menu-vertical-demo"
                    @open="handleOpen"
                    @close="handleClose">
                  <el-submenu index="1">
                    <template slot="title">
                      <i class="el-icon-video-camera-solid"></i>
                      <span>直播间信息</span>
                    </template>
                    <el-menu-item index="/zl">数据总览</el-menu-item>
                    <el-menu-item index="/tj">礼物统计</el-menu-item>
                    <el-menu-item index="/ph">消费排行</el-menu-item>
                  </el-submenu>
                </el-menu>
              </el-col>
            </el-row>
          </div>
        </el-aside>

        <el-main>
          <div class="标题">
            <h>观看历史</h>
          </div>
          <el-card class="box-card">
            <div slot="header" class="clearfix">m'm'm'm'm'm'm'mmm
         <span>
           <div style="text-align: left"> 直播
           </div>
         </span>
            </div>
            <div class="img">
              <a target="_blank" href="//static.runoob.com/images/demo/demo2.jpg">
                <img class="zhibofengmian" src="//static.runoob.com/images/demo/demo2.jpg" alt="图片文本描述" width="300" height="200">
              </a>
              <div class="desc">
                <a href="https://sm.ms/image/sq87LvMzobDU5ch" target="_blank">
                  <img class="headimg" src="https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png"></a>
                <div class="小窗用户名">
                  淹死了一条鱼
                </div>
                <div class="小窗房间位置">
                  我现在好饿写完这页就去吃饭
                </div>
              </div>
            </div>
          </el-card>

        </el-main>
      </el-container>
    </el-container>
    <div>
    </div>
  </div>
</template>

<script>
export default {
  name: "观看历史",
  data() {
    return {
      activeName: '1',
      circleUrl: "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png",
      sizeList: ["large"]
    };
  },
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}

</script>

<style scoped>
body{ background-color:#EEEEEE}

.我的关注 {
  position:relative;
  top:30px;
  left:-100px;
  width:30%;
  margin-right:3%;
  margin-left:3%;
  margin-bottom: 5%;
  height:200px;
  border-radius: 15px;
}

.菜单
{
  margin-left:3%;
}
.标题
{
  position:relative;
  font-size:x-large;
  top:-20px;
  float:left;
  margin-left:3%;
}
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}
.img{
  margin-left: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
  border: 1px solid #FFFFFF;
  float: left;
  width: 22%;
  position:relative;
  display: inline-block;
}
.img:hover{
  border: 1px solid #777;
}
img{
  /*设置图片宽度和浏览器宽度一致*/
  width: auto;
  height: 100%;
  border-radius:10px;
}
.zhibofengmian{
  width: 100%;
  height: auto;
}
.desc{

  margin-bottom:5%;
  padding: 5%;
  text-align: center;
}
.headimg{
  position:relative;
  top:-5px;
  width:20%;
  float: left;
}
.小窗用户名 {
  position:relative;
  top:-5px;
  font-size: xx-small;
  left:-10px;
}
.小窗房间位置 {
  width:150%;
  position:relative;
  top:-10px;
  left:-45px;
  font-size: 13px;
  transform: scale(0.6);
}
</style>
